package com.fastCms.business.frame.constant;

/**
 * @Description 返回结果码
 * @Param
 * @Return
 * @Date 2019/3/9 下午4:56 lsquan
 */
public class ResultCodeConst {
    //成功-1000
    public static final int SUCCESS_CODE = 1000;
    public static final String SUCCESS_MSG = "success";

    //失败-9000
    public static final int FAIL_CODE = 9999;
    public static final String FAIL_MSG = "fail";

    //token验证失败-9002
    public static final int TOKEN_ERROR_CODE = 9002;
    public static final String TOKEN_ERROR_DEFAULT_MSG = "token验证失败";

    //请求参数错误-2001
    public static final int PARAM_ERROR = 2001;
    public static final String PARAM_ERROR_MSG = "请求参数错误";


    //数据异常或不存在-2002
    public static final int DATA_ERROR = 2002;
    public static final String DATA_ERROR_MSG = "数据异常或不存在";

    //sql异常-2003
    public static final int SQL_ERROR = 2003;
    public static final String SQL_ERROR_MSG = "sql异常！";

    //请求参数错误-2001
    public static final int PARAM_NULL = 2005;
    public static final String PARAM_NULL_MSG = "请求参数不能为空";

    public static class ORGANIZE {
        /**
         * @Description 组织用户已存在-4001
         */
        public static final int ORGANIZE_NAME_EXISTS = 4001;
        public static final String ORGANIZE_NAME_EXISTS_MSG = "企业名称已存在";

    }


    /**
     * @Description 用户模块
     * @Date 2019/3/11 下午5:30 lsquan
     */
    public static class USER {
        /**
         * @Description 用户不存在-3001
         */
        public static final int USER_NOT_EXIST = 3001;
        public static final String USER_NOT_EXIST_MSG = "用户不存在！";
        /**
         * @Description 密码不正确-3002
         */
        public static final int USER_OR_PWD_ERROR = 3002;
        public static final String USER_OR_PWD_ERROR_MSG = "密码不正确";

        /**
         * @Description 当前帐号状态不可用，请联系管理员-3003
         */
        public static final int USER_STATUS_ERROR = 3003;
        public static final String USER_STATUS_ERROR_MSG = "当前帐号状态不可用，请联系管理员";

        /**
         * @Description 帐号平台不正确-3004
         */
        public static final int USER_PLATFORM_ERROR = 3004;
        public static final String USER_PLATFORM_ERROR_MSG = "帐号平台不正确";

        /**
         * @Description 该手机号码已注册-3005
         */
        public static final int PHONE_BE_REGISTER = 3005;
        public static final String PHONE_BE_REGISTER_MGS = "该手机号码已注册！";

        /**
         * @Description 角色名不能重复-3007
         */
        public static final int ROLE_BE_EXIST = 3007;
        public static final String ROLE_BE_EXIST_MSG = "角色名不能重复！";

        /**
         * @Description 角色名不能重复-3008
         */
        public static final int ROLE_EXIST_USER = 3008;
        public static final String ROLE_EXIST_USER_MSG = "该角色下存在用户！";

        /**
         * @Description 无该权限-3009
         */
        public static final int NO_AUTH = 3009;
        public static final String NO_AUTH_MSG = "无该权限！";

    }

    public static class VERIFICATION {
        /**
         * @Description 验证码已过期-5001
         */
        public static final int VERIFICATION_TIME_INVALID = 5001;
        public static final String VERIFICATION_TIME_INVALID_MSG = "验证码已过期";

        /**
         * @Description 验证码不正确-5002
         */
        public static final int VERIFICATION_FAIL = 5002;
        public static final String VERIFICATION_FAIL_MSG = "验证码不正确!";
    }

    public static class FILE {
        /**
         * @Description 文件不能为空-6000
         */
        public static final int FILE_IS_EMPTY = 6000;
        public static final String FILE_IS_EMPTY_MSG = "文件不能为空";

        /**
         * @Description 文件过大-6001
         */
        public static final int FILE_TOO_BIG = 6001;
        public static final String FILE_TOO_BIG_MSG = "文件过大";
    }

    /**
     * @Description 验证码
     */
    public static class VALIDATE_CODE {

        public static final int ERROR = 7000;
        public static final String ERROR_MSG = "验证码不正确！";

        public static final int EXPIRE = 7001;
        public static final String EXPIRE_MSG = "验证码已失效，请刷新重试！";

        public static final int NOTNULL = 7002;
        public static final String NOTNULL_MSG = "请输入验证码!";
    }


    public static class WX {
        /**
         * 请求时间不能为空
         */
        public static final int GET_PHONE_FAIL = 11001;
        public static final String GET_PHONE_FAIL_MSG = "获取手机号码失败";

        /**
         * 获取sessionKey失败
         */
        public static final int GET_SESSIONKEY_FAIL = 11002;
        public static final String GET_SESSIONKEY_FAIL_MSG = "获取sessionKey失败";

        /**
         * 获取微信信息失败
         */
        public static final int GET_WX_INFO_FAIL = 11003;
        public static final String GET_WX_INFO_FAIL_MSG = "获取微信信息失败";


        /**
         * 请先获取手机号码
         */
        public static final int DONT_HAVE_PHONE = 11004;
        public static final String DONT_HAVE_PHONE_MSG = "请先获取手机号码";

    }


}
